Dr. Seuss was completing his amazing novel one fish, two fish, red fish, blue fish when he realized he may not have been using the letters of the alphabet correctly. He needed a way to count the number of each specific letter in a given string of characters.
Input Format
A string of characters.
Sample Input
hello
Output Format The number of each specific letter in a given string of characters. Each letter should be printed on its own line in alphabetical order. The letter should be the first thing on the line, followed by a space, and finally the number of occurrences of each letter.
Sample Output
e 1
h 1
l 2
o 1
You must be logged in to submit a solution.